package gotnames;

/**
 * A pair consisting of two object references.
 */
public class Pair<X, Y> {
	
	public final X first;
	public final Y second;
	
	private Pair(X x, Y y) {
		this.first = x;
		this.second = y;
	}

	/** @return a {@link Pair} with the two given objects */
	public static <X, Y> Pair<X, Y> cons(X first, Y second) {
		return new Pair<X, Y>(first, second);
	}
	
}
